package com.wzd.eduservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wzd
 * @since 2021-04-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_live")
@ApiModel(value = "Live对象", description = "")
public class Live implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 教师id
     */
    private String teacherId;
    /**
     * 课程id
     */
    private String courceId;
    /**
     * 房间号
     */
    private String room;
    /**
     * rmtp链接地址
     */
    private String rmtp;
    /**
     * 是否正在直播
     */
    private Boolean online;
    /**
     * 是否为共公开课
     */
    private Boolean isPublic;
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
